package com.inno.auth.domain.utils;

import cn.hutool.crypto.digest.MD5;

import java.io.File;
import java.io.InputStream;
import java.nio.charset.Charset;

public class Md5Utils extends MD5 {
    public Md5Utils() {
        super();
    }

    public Md5Utils(byte[] salt) {
        super(salt);
    }

    public Md5Utils(byte[] salt, int digestCount) {
        super(salt, digestCount);
    }

    public Md5Utils(byte[] salt, int saltPosition, int digestCount) {
        super(salt, saltPosition, digestCount);
    }

    @Override
    public String digestHex16(String data, Charset charset) {
        return super.digestHex16(data, charset);
    }

    @Override
    public String digestHex16(String data) {
        return super.digestHex16(data);
    }

    public static void main(String[] args) {
        System.out.println(Md5Utils.create().digestHex("123456"));
    }

    @Override
    public String digestHex16(InputStream data) {
        return super.digestHex16(data);
    }

    @Override
    public String digestHex16(File data) {
        return super.digestHex16(data);
    }

    @Override
    public String digestHex16(byte[] data) {
        return super.digestHex16(data);
    }
}
